<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../link/heat.jsp" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/static/easyui/themes/default/easyui.css"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/wu.css"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/icon.css"/>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/static/easyui/locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
<!--取出上一个页面上带来的page的值-->


<div id="addAll">


    <div id="toolbar">
        <input type="reset" value="取消" class="btn btn-default" onclick="myclose()">
        <script type="text/javascript">
            function myclose() {
                window.history.go(-1)
            }
        </script>
    </div>
    <c:if test="${ empty role}">
        <font color="red">还没有用户</font>
    </c:if>
    <c:if test="${not empty role}">
        <table class="easyui-datagrid" title="用户详情" toolbar="#toolbar" style="width:100%;"
               rownumbers="true" id="table">
            <thead>
            <tr>

                    <%--  <th data-options="field:'code'"  width="8%">序号</th>--%>
                <th data-options="field:'number'" width="8%">用户编号</th>
                <th data-options="field:'name'" width="8%">用户名</th>
                <th data-options="field:'color'" width="5%">用户性别</th>
                <th data-options="field:'price'" width="9%">用户密码</th>
                <th data-options="field:'time'" width="8%">用户手机号</th>
                <th data-options="field:'count'" width="13%">用户照片</th>
                <th data-options="field:'states'" width="10%">部门编号</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${requestScope.role.user}" var="user" varStatus="i">
                <tr>
                    <td>${user.userId}</td>
                    <td>${user.userName}</td>
                    <td>${user.userSex}</td>
                    <td>${user.userPwd}</td>
                    <td>${user.userPhone}</td>
                    <td><img src="${user.userPhoto}" width="250px" height="100px"></td>
                    <td>${user.departmentId}</td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
    </c:if>


    <%-- String carLogo;String carNumber;carTime;carZuo;carColor; carPrice; carPhoto; carStatus;--%>

</div>

</body>
</html>
